<?php
	/*
		UserCake Version: 1.4
		http://usercake.com
		
		Developed by: Adam Davis
	*/
	require_once("models/config.php");
	require_once("ui.php");
	
	//Prevent the user visiting the logged in page if he/she is not logged in
	if(!isUserLoggedIn()) { header("Location: login.php"); die(); }
?>
<?php printPageHead(null, null); ?>

	<?php printNavigationBar('index', '') ?>		

	<div id="content" class="container_16 clearfix">
		<!--  <h2>TODO: Make some fields editable</h2>-->
		
		<div class="grid_11">
			<div class="box">
				<h2>User <?php echo $loggedInUser->username; ?></h2>
				<table>
					<tbody>
						<tr>
							<td>Group name</td>
							<td><?php  $group = $loggedInUser->groupID(); echo $group['Group_Name']; ?></td>
						</tr>
						<tr>
							<td>Registration time</td>
							<td><?php echo date("l \\t\h\e jS Y",$loggedInUser->signupTimeStamp()); ?></td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
	</div>
<?php printPageFoot(); ?>

